import request from './request';
import getParams from '@/tools/getParams.js';

export const baseFindList = (params) => {
    const str = getParams(params)
    const url = `/sys/dict/findList${str}`
    return request({
        url: url,
        method: 'get',
        data: params
    })
}
export const baseAdd = (params) => {
    return request({
        url: '/sys/dict/add',
        method: 'post',
        data: params
    })
}
export const baseUpdate = (params) => {
    return request({
        url: '/sys/dict/update',
        method: 'post',
        data: params
    })
}
export const baseDelete = (params) => {
    return request({
        url: '/sys/dict/delete',
        method: 'post',
        data: params
    })
}